@import '@/styles/utils.scss';



.preview{

  width: 100%;
  height: 100%;
  background: #FFFFFF;
  box-shadow: 0px 0px 40px 0px #EBEBEB;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s;

  :global(.dark) & {
      background: #292A2E;
      box-shadow:none;
      border:1px solid #3F3F46
  }


  .code{
    position: relative;
    flex: 1;
    .codeCont{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
    }
  }

}


.button1 {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #000000;
  color: #000;
  padding: 6px 0px;
  min-width: 120px;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  .buttonIcon {
    color: #000;
  }

  :global(.dark) & {
    color: #fff;
    border: 1px solid #fff;

    .buttonIcon {
      color: #fff;
    }
  }
}


.options{
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
}

.button1 {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #FFFFFF;
  padding: 0px 10px;
  min-width: 100px;
  height: 32px;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid #E3E3E3;
  font-size: 12px;
  color: #353535;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  &:hover {
    background: #F3F3F3;
  }


  :global(.dark) & {
    color: #d1d5db;
    border-color: #3F4245;
    background-color: transparent;

    &:hover {
      background: #313234;
    }
  }
}